////sdse_action GuiElement

#ifndef GUIELEMENT_H
#define GUIELEMENT_H

#include "gfxServer.h"

using namespace sde;

class GuiElement : public Action {
protected:
    CEGUI::Window* window;
    CEGUI::Window* parentWindow;
    CEGUI::WindowManager* windowManager;
    
    GfxServer* gfxServer;
    
public:
    GuiElement(std::string _type, std::string _name, Object* _object);
    
    virtual CEGUI::Window* makeWindow(CEGUI::WindowManager* windowManager);
    
    virtual void run();
    virtual void stop();
    
    void updateParent(Var val);
    void updatePosition(Var val);
    void updateSize(Var val);
};

#endif
